package com.rerun.service;

import com.rerun.common.sms.SmsTemplate;

/**
 * The interface Sms service.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /11/1 10:34
 */
public interface ISmsService {


    /**
     * 发送手机验证码.
     *
     * @param phoneNumber the phone number
     * @return the boolean
     */
    boolean   sendCaptcha(String phoneNumber);

    /**
     * 发送短信.
     *
     * @param smsTemplate the sms template
     * @return the boolean
     */
    boolean  sendSms(SmsTemplate smsTemplate);

    /**
     * 验证短信验证码.
     *
     * @param phoneNumber the phone number
     * @param smsCode     the sms code
     * @return the boolean
     */
    boolean  verifySmsCode(String phoneNumber,String smsCode);
}
